package com.zhou.message.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhou.message.model.AttachInfo;
import com.zhou.message.model.SendMessageDetailModel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class SendMessageQuery implements Serializable {
    private Integer id;
    private Integer  fromUserId;
    private String title;
    private String content;
    private Integer status;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDt;
    private Integer timer;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendDt;
    //消息优先级0-10
    private Integer level;
    //0-内部消息；1-邮件；3-三方消息
    private Integer type;
    private Integer deleteFlag;
    private List<SendMessageDetailModel> detailQueryList = null;
    private List<AttachInfo> attachInfoList = null;


}
